// import { onMounted, onUpdated } from "vue";
import useMountedAndUpdated from "./useMountedAndUpdated";

function useTitle(count) {
  // onMounted(() => {
  //   document.title = `${count.value} 次`;
  // });

  // onUpdated(() => {
  //   document.title = `${count.value} 次`;
  // });

  useMountedAndUpdated(() => {
    document.title = `${count.value} 次`;
  });
}

export default useTitle;
